package com.uplift.mgt.customer.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.uplift.mgt.customer.model.Customer;

@Repository
public interface CustomerMapper {
	public List<Map<String, Object>> selectCustomer(Customer customer);

	public List<Map<String, Object>> selectCustomerEqual(Customer customer);

	/**
	 * 新增客户
	 * @param customer
	 * @return
	 */
	public int insertCustomer(Customer customer);

	/**
	 * 更新客户
	 * @param customer
	 * @return
	 */
	public int updateCustomer(Customer customer);

	/**
	 * 批量插入客户
	 * @param list
	 * @return
	 */
	public int insertCustomerBatch(List<Customer> list);
}
